package com.example.administrator.baikangxing.activity;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.administrator.baikangxing.R;

public class WatchActivity extends BaseActivity implements View.OnClickListener {


    private TextView unbind;
    private TextView find;
    private LinearLayout upgrade;
    private LinearLayout qr;
    private LinearLayout change;
    private LinearLayout bind;

    @Override
    public int getContentViewLayoutId() {
        return R.layout.activity_watch;
    }

    @Override
    public void initView() {
        setTitles("手表信息");
        bind = findView(R.id.watch_ll_bind);
        change = findView(R.id.watch_ll_change);
        qr = findView(R.id.watch_ll_qr);
        upgrade = findView(R.id.watch_ll_upgrade);
        find = findView(R.id.watch_tv_find);
        unbind = findView(R.id.watch_tv_unbind);
        bind.setOnClickListener(this);
        change.setOnClickListener(this);
        qr.setOnClickListener(this);
        upgrade.setOnClickListener(this);
        find.setOnClickListener(this);
        unbind.setOnClickListener(this);
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.watch_ll_bind://绑定设备
                break;
            case R.id.watch_ll_change://更换设备
                break;
            case R.id.watch_ll_qr://二维码
                break;
            case R.id.watch_ll_upgrade://设备升级
                break;
            case R.id.watch_tv_find://寻找设备
                break;
            case R.id.watch_tv_unbind://解绑设备
                break;
            default:
                break;
        }
    }
}
